package org.dzms.services;

import java.util.List;

import org.dzms.commons.DataHandler;
import org.dzms.commons.PageHandler;
import org.dzms.dao.homePageDAO;
import org.dzms.entity.FoodClass;
import org.dzms.entity.HomePage;

public class homePageService {
	private homePageDAO hpDao = new homePageDAO();
	
	public PageHandler findPage(int cp, String cond) {
		PageHandler pb = new PageHandler(hpDao);
		pb.setCurrentPage(cp);
		pb.setCond(cond);
		return pb.findBean();
	}
	
	public List<HomePage> findAll() {
		return hpDao.findAllHp();
	}
}
